<?php

class FirstCest
{

    public function homeTest(AcceptanceTester $I)
    {
        $I->amOnPage('/');
        $I->see('登录页面');
    }

    public function LoginTest(AcceptanceTester $I)
    {
        $I->amOnPage('/');
        $I->submitForm('#login', [
            'username' => 'wangkun',
            'pwd' => '123456'
        ]);
        $I->see('登录成功');
    }
}
